package com.test.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author:fangn
 * @Date:2019/11/6
 **/
@FeignClient(value = "service-hi", fallback = FeignHelloServiceHystrix.class)
public interface FeignHelloService {

    @GetMapping(value = "/hi")
    String sayHi(@RequestParam("name") String name);
}
